package com.wangsh.usersCenter.web.head.controller;

import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

import com.wangsh.usersCenter.common.controller.BaseController;
import com.wangsh.usersCenter.common.pojo.ApiResponse;
import com.wangsh.usersCenter.common.pojo.ApiResponseEnum;
import com.wangsh.usersCenter.common.util.ConstatFinalUtil;
import com.wangsh.usersCenter.users.pojo.AUsers;
import com.wangsh.usersCenter.users.service.IUsersOperService;

/**
 * 	管理员首页操作
 * 	@author wangsh
 */
@Controller
@RequestMapping("/head/users/")
public class UsersClientController extends BaseController
{
	@Resource
	private IUsersOperService usersOperService;
	/**
	 * 首页
	 * @return
	 */
	@RequestMapping("/main")
	public String main()
	{
		ConstatFinalUtil.SYS_LOGGER.info("--main--");
		return "/head/users/main";
	}
	
	/**
	 * 退出页面
	 * @return
	 */
	@RequestMapping("/logout")
	public String logout(HttpServletRequest request, HttpSession session)
	{
		ConstatFinalUtil.SYS_LOGGER.info("--logout--");
		/* 客户端跳转到登陆页面 */
		return "redirect:/login.htm";
	}
}
